/**
 * 
 */
package com.wolfware.athsweb.persistancy.dao;

import java.util.List;

import com.wolfware.athsweb.domain.Competition;

/**
 * Used to persist a Competition object.
 * @author cstrzadala
 */
public interface CompetitionDAO  {

	/**
	 * 
	 * @param competition
	 */
	void saveCompetitionEntry(final Competition competition);
	
	/**
	 * 
	 * @param competition
	 */
	void saveCompetitionEntries(final List<Competition> competitionList);
	
	/**
	 * 
	 * @return List of Competitions
	 */
	List<Competition> getAllCompetitions();
	
	/**
	 * 
	 * @return Competition
	 */
	Competition getCompetitionById(Long id);
	
	/**
	 * 
	 * @param competition
	 */
	void updateCompetitionEntry(Competition competition);
	
	/**
	 * 
	 * @param competition
	 */
	void deleteCompetitionEntry(Competition competition);
}
